<div class="foot">
    <span style="margin-top: 45px; display: block;">主办：丽水出入境智慧党建 | 技术支持: 高米科技<a href="/admin.php">[后台管理]</a></span>
    <span style="margin-top: 10px">{dr_block('footerInfos')}</span>
</div>
<div class="mistake-box" style="display: none;" id="box">
    <div class="mistake">
        <div class="mistake-title" style="margin-top: 30px;">
            温馨提示
        </div>
        <div class="mistake-contene" style="margin-top: 35px;">
            您的浏览器版本过低，请使用360浏览器极速模式、360极速浏览器、谷歌浏览器、ie9以上的浏览器访问本页面！
        </div>
        <div class="mistake-contene" id="mistake" style="margin-top: 30px; color: #c50c11">

        </div>
    </div>
</div>
</body>


<script>
    layui.use(['carousel', 'form'], function() {
        var carousel = layui.carousel,
            form = layui.form;

        //改变下时间间隔、动画类型、高度
        carousel.render({
            elem: '#test2',
            interval: 5000,
            anim: 'fade',
            height: '100px',
            width: '1000px',
            arrow: 'hover',
            autoplay: true,
            indicator: 'none'
        });
    });
</script>
<script>
    var b = 1920/460;//我的图片比例
    //获取浏览器宽度
    var W = $(window).width();
    var H = $(window).height();
    layui.use('carousel', function() {
        var carousel = layui.carousel;
        //建造实例
        carousel.render({
            elem: '#test1',
            width: '100%',
            height: (W/b).toString()+"px",
            interval: 5000,
            anim: 'fade',
            arrow: 'hover',
            autoplay: true,
            indicator: 'none'
        });
    });
   
//窗口变化是重新加载
$(window).resize(function () {
    // setBanner();
    window.location.reload()
})
</script>
<script>
    var date = this.getDateTime()
    document.getElementById('time').innerHTML = '<span style="float: left">' + '今天是:' + '  ' + date + '</span>';

window.console = window.console || (function () {
    var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile
    = c.clear = c.exception = c.trace = c.assert = function () { };
    return c;
})();
</script>
<script>
    function getBrowser(n) {
        var ua = navigator.userAgent.toLowerCase(),
            s,
            name = '',
            ver = 0;
        //探测浏览器
        (s = ua.match(/msie ([\d.]+)/)) ? _set("ie", _toFixedVersion(s[1])):
            (s = ua.match(/firefox\/([\d.]+)/)) ? _set("firefox", _toFixedVersion(s[1])) :
            (s = ua.match(/chrome\/([\d.]+)/)) ? _set("chrome", _toFixedVersion(s[1])) :
            (s = ua.match(/opera.([\d.]+)/)) ? _set("opera", _toFixedVersion(s[1])) :
            (s = ua.match(/version\/([\d.]+).*safari/)) ? _set("safari", _toFixedVersion(s[1])) : 0;

        function _toFixedVersion(ver, floatLength) {
            ver = ('' + ver).replace(/_/g, '.');
            floatLength = floatLength || 1;
            ver = String(ver).split('.');
            ver = ver[0] + '.' + (ver[1] || '0');
            ver = Number(ver).toFixed(floatLength);
            return ver;
        }

        function _set(bname, bver) {
            name = bname;
            ver = bver;
        }
        return (n == 'n' ? name : (n == 'v' ? ver : name + ver));
    };
    var browser = getBrowser()
    this.whatBrowser()
    console.log(document.getElementById('box').style)

    function whatBrowser() {
        if (window.navigator.userAgent.indexOf('compatible') != -1 && browser.slice(2) < 9) {
            document.getElementById('mistake').innerHTML = '您当前的浏览器内核版本为' + this.browser
                document.getElementById('box').style.display = 'block'
        }
    }
</script>

</html>